<html>
  <head>
    <script type="text/javascript" src="jquery-1.3.2.js"></script>
    <script type="text/javascript" src="jquery.validate.js"></script>
<script type="text/javascript" src="jquery.url.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
	alert(jQuery.url.param("fname")); 
    	 $.validator.addMethod("noSpecialChars", function(value, element) {
    		      return this.optional(element) || /^[a-z0-9\.]+$/i.test(value);
    		  }, "Username must contain only letters, numbers, or dots.");
    	//$("#butid").click(function(){
    		$("#formid").validate();       	
		$("#fname").val(jQuery.url.param("fname"));
		$("#lname").val(jQuery.url.param("lname"));
		$("#lid").val(jQuery.url.param("logn"));
		$("#pwd").val(jQuery.url.param("pwd"));	
		$("#dname").val(jQuery.url.param("fname"));
		$("#uname").val(jQuery.url.param("fname"));		
    });
    </script>
  </head>
  <body>
  <center>
  <div class="body">
<h2>Account Login Successfully </h2>
  <h3>
  Edit/delete an Account
</h3>
<div style="border:3px solid skyblue" >
<form id="formid" action="DBServlet" method="post">
<table>
<tr height=10><td></td></tr>
<tr><td style="color:blue" height=20 ><b>Update/Delete with Gmail</b></td></tr>
<tr><td></td></tr>
<tr height=0><td><b>First Name</b></td>
<td><b><input type="text" class="required || digit"  name="fname" id="fname" value=""></b></td></tr>
<tr height=50><td><b>Last Name</b></td>
<td><b><input type="text" class="required" name="lname" id="lname"></b></td></tr>
<tr height=0><td><b>Desired Login Name</b></td>
<td><b><input type="text" class="required noSpecialChars" name=lid id="lid"></b><i>@gmail.com</i></td></tr>
<tr height=50><td><b>Password</b></td>
<td><b><input type="password" class="required" name="pwd" minlength=5 id="pwd"></b></td></tr>
  <tr><td><input type="hidden" name="hidden" id="update" value="update" ></td></tr>
<tr height=50><td><input type="hidden" name="uname" id="uname"></td>
  <td><input type="submit" value="Update Record" id="upid" size=30></td></tr>
<tr>
</form>
<form id="formid" action="DBServlet" method="post">
<td><input type="hidden" name="hidden" id="delete" value="delete" ><input type="hidden" name="dname" id="dname"></td>
<td><input type="submit" value="Delete Record" id="delid" size=30></td></form>
</table></div> 
  </body>
</html>

